package fr.jhaccoun.demenager_eco.web.propertyeditor;

import org.springframework.beans.PropertyEditorRegistrar;
import org.springframework.beans.PropertyEditorRegistry;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import fr.jhaccoun.demenager_eco.produit.EtatUsure;

@Component
public class CustomPropertyEditorRegistrar implements PropertyEditorRegistrar {

	
	@Autowired
	private EtatUsurePropertyEditor etatUsureEditor;
	
	
	@Override
	public void registerCustomEditors(PropertyEditorRegistry registry) { 
		registry.registerCustomEditor(EtatUsure.class, etatUsureEditor);  
	}

}
